Start work on database abstraction.

Finding a username and adding a user are partly implemented.