Python script to add entries to DB through ORM