Move db init outside of flask init. Dont hardcore xdg_home