added code to add and to show entries from db