fixed db models creation