add db script and pom minor fix