Bootstrap api after connection to db is established