Added some logging to reassure that the DB is correctly connected.