Further attempts to get the database working; Still failing