Validate table prefix on install. Closes #1815