Added limited validation for db parameters

Added some length and general regex validation for db_username,
db_password and db_name.   It probably could be a lot better but
it is a good start.

Fixes #12
Fixes #11
Fixes #10