DB helper implemented

made a simple ORM to simplify data management