CI update and database design