sql script to create pos database