Fix sqlescape breaking table names