updating database to avoid persisting connections