update database (views incomplete)