Add Background for database connection
minor cleanup