Get last Insert Id

Added a function to get lastInsertId