Modify database generation scripts, add table for chat