reconstruct database and model, adjust layout, add some stylesheet