added comments and seperated out db setup scripts