i don't know about full jdbc 2.0 support, but i do know that postgresql can be distributed with commercial products (and does have jdbc 2.0 support, i just don't know the extent). mysql is GPL, so if you use that you have to gpl all your source code for your product (something my old company chose not to do)