Add database input for usernames - fixes #19