Added two new parameters to get_last_insert_id in database connection classes.