fixed build script
working on database connection