Bootstrap and database connection