pom + db scripts
various fixes