fixes composer.json.
add argument for setConnection.
fixes error handling.
fixes to work well on sqlite3