Only recreate database when model changes