Add a task to connect to the database on the server