script for DB tables, fixed