Implemented auto loader and database connection.