add script to generate database schema