add function. #3

Add initial database script