began work on connecting to database