Added database script and model