testing table api and db