added models folder and updated database config