register works until db insert point