added actual database function lalit need to build out seeding and test interface