Connect to the database on init