User and hash read from database