Backup functionality

Added a backup module, and fixed the database creation script