add database handle for rating