add database connection repeat