added problem database functionality