pull in bsd.database.mk from upstream, but patch with mariadb-galera patches