Add db functions in django.py

They call the same name methods in database.py that used to be
functions but are now no longer accessible.
rename to create_dbdump_cron_file

from create_mysqldump_cron_file so the function makes sense as a generic
db function.
Fix bad names in fablib
add more abstract methods to tasklib/database