fix DB initalization