get last insert id SQL statement from config instead of hardcoded value