Database-assisted end-to-end theoretical and simulation framework for cognitive radio networks