Added insert query to db connection