Added capability to insert to DB

Added capability to insert to DB