Implemented persistent database
Added persistent database