wrote an initialize script for the database