updated sql files & added test dbscript