create database, init work area and bootstrap