add database state for mariadb