Selected User Information from the Database

I wrote code that will select user information from the database. It will select the salt and password from the database and will have future uses as into the user having entered the correct password and having matching salts.