Work on database connection