Connect users to database