Updated datasbase script