close pg connection
fixed db close
lesson 0
error 500 =(