connect to database and run with bootstrap