#some db model fixes