attempts to get a database working
minor changes