db fixes for local