more work on database connectivity