rough database reconstructure