adding ability to insert in db