Connect to the database on server launch