Rewrote connect_db to accept args. Adjusted settings for development. Adding tests for connect_db.