add backticks around table names

@eMerzh seems that we missed the table names while adding backticks to the database queries ( #2336 )