first version bd and entity