Implemented db code for items screen