working with databases, appears to be okay now

working also on login stuff, more work to do