create mysql table structure

the config table is new (formerly stored in config variables in php)
but the other tables are from previous version of this project