Ensure db table prefix is used in raw SQL queries

This fixes https://github.com/octobercms/october/issues/637 by adding the getTablePrefix() function to the Database Dongle class and ensures the new function call is added before any table names in raw SQL queries.