created entity file from database