Updates database structure.