Get last Insert Id

function to get lastInsertId