added optional java environment and extract db provisioning to the common module