test fix
Rename cast_user_to_db -> cast_user_to_internal

This leaves room for internal <-> db casting if ever needed.