Task linking: fix Sqlite support and add support (beta) for MySQL and
Postgres