Custom sql post-auth help