insert into bindings
( ip,
  type) 
VALUES 
( :ip:,
  :type:)
RETURNING
  binding_id AS last_inserted_id;
