split models from database into core and web models