sql script for project