fixed exporting model, added user schema