Fixing return lastrowid