added database script

#18