database and layout completed