Added lastinsert in onSuccess of DB.Query (Requested)