Fix insertion checks
Fix other libs as well
Merge pull request #42 from ozh/is_insert

Var $is_insert not correctly defined
Return false when no connection can be made
Merge pull request #43 from ozh/if_no_server_return_false

Return false when no connection can be made