moved field operations into corresponding namespace
db will be pg instead of mysql