Updates database models