add tables to db and edit ACore