creating the tables works, fixed some errors