Don't connect to the database twice.