some db patches