Fix more model references
Fix categories in backend post editor
Re-order arguments for posts.getByID
Move DB methods to new model; reimplement post deletion