How to create and edit custom tables