add database connection for for bug