Added quotes to table names and keys

Fixed the missing quotes from the table names,
primary and foreign keys.