Make error message description optional.
Reduce nesting.
Added DB to use in file encrypting.
Add Login api method.

Add Logout api method.
Fix MYSQL select statements.