add table write methods and update read quereis