Log success/error message on database connection