removed comments
close entity manager properly in resource servlet
create new entity manager factory every time, solves connection
timeout problem, hopefully