sql common scripts