Got the database access working.