Create beards pec

Finished core req
add an index to all foreign keys