> SQL, it's so ugly on some inner level I'd much rather start with datalog and build my own up
SQL syntax may be ugly, but for once, it's an example of a widely used technology that is based on a very firm and well thought out theoretical framework.
As a developer, it is definitely worth investing time in understanding relational databases and the theory behind them.