Split web and db model