create _get_database_name function.

This function returns the absolute path of the database, that is
expected to be in the same directory as the .py being executed.

It is needed because this script runs as a cronjob.