added db
added production db
added model
fixed api