use fixed size decoding and make sure we close the file.
Make sure usernames and database names are valid
fix password caching issue