Init db and reset db fixes.