finish cloud database and add log page