Added script to fix the db