added build db script for entities