Fixed creating one instance of database connection