[Backport] Compare resources search query to lowercase column value. Closes #493
[Backport] Adds support for dumping and importing PostgreSQL databases.