Small changes.
Adding SQL function to verify user credentenials.