Fixes #4994 validating db table prefix