More table prefix support

More MySQL queries supporting prefixes.
Empty database with prefix

Added a script for generating an empty database with the desired prefix.