made local, username and password into options in insert functions
updated get_client function