refresh database connection every 5 mins