db and user entity