Adding persistence layer to application along with entity