Database-independent migration library