modified database script