Added autoloader, connected to database