changed db models