Now it creates all the database stuff needed on import. Still left to do: generate thumbs. And tags. And some individual features.