created backend for closing post

still need the correct sql statements, though