fixed bootstrap, added database, session and autoload for libraries