Using new db library instead of raw jpa methods in delete post model.
Removed superfluous findpostbyid call - using jpa library instead.