Fixed insert returning lastrowid