added tools to deploy database, little modification