Use quoteName on db queries