Authentication work in progress - some basic db commands, but no logic