add backticks around table names
Merge pull request #2525 from owncloud/fix_db_queries

add backticks around table names