Improve readability.
Use of dashes in DB identifiers is discouraged.

See the following resources for more information:
http://dev.mysql.com/doc/refman/5.0/en/account-names.html
http://www.postgresql.org/docs/current/interactive/sql-syntax-lexical.html
Merge redundant DB code into central file.
Use clearer variable names and fix indenting.
Adjust filenames to reflect purpose.
Remove exec flag from library-style script modules.

They might confuse users which parts are meant to be executed from the command
line, plus it is not required as they are "sourced" in in the main "setup.sh"
script. Thus it is better not to have them executable anyway.

If required, individual modules can still be called using "source
<modulename>.sh" if all required variables are set appropriately.
Add function description.
Make sure NOT to return an empty string.
Allow to configure a DB name.
Be more careful with database privileges.
Ignore vim swap files.
Ensure a non-localized environment for the setup script.