close database connection after action, because the limitation of heroku I suppose