Added inserting to database capability