working on database table abstraction