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

refs #97
Merge redundant DB code into central file.

refs #97
Use clearer variable names and fix indenting.

refs #97
Adjust filenames to reflect purpose.

refs #97
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.

refs #97
Add function description.
Make sure NOT to return an empty string.

refs #97
Allow to configure a DB name.

refs #97
Be more careful with database privileges.

Previously, the newly created DB user for the HRM was given full permission
to the complete MySQL installation, which is a potential security problem when
the server is not only used for the HRM.

refs #97
Ignore vim swap files.
Ensure a non-localized environment for the setup script.

Otherwise, checking the output of system tools will be subject to many problems
if a non-english language is set (which is the default if one was selected
during installation using the Ubuntu Installer from CD or similar).

refs #97
Fix function to work with multiple packages and newer dpkg versions.

Grepping for the error message was not very portable, i.e. it did not work with
dpkg in Ubuntu 13.10 any more as the error message slightly changed. Also the
formatting is different, so the cut statement was also broken. Additionally,
the old function only worked properly with single packages. Thus, checking for
the packages individually and testing for the "installed" status should be a
lot more robust.

refs #97
Add function description.
Quotes are not required here, they could even cause problems.

refs #97