CREATE TABLE contacts(id INT AUTO_INCREMENT PRIMARY KEY,wa_id VARCHAR(30),name VARCHAR(255));
CREATE TABLE messages(id INT AUTO_INCREMENT PRIMARY KEY,wa_id VARCHAR(30),direction ENUM('in','out'),message LONGTEXT);