more work on login database... not working yet, but progress