Wrote write_db_in_config function in the Fabric file, and fixed init_database