Is there any way to close database connection after fetch data