Update randomizer.php

Changes Made
==============

> Added __destruct() to close databse,

> Reduced One function and replaced that with array  (removed getOperation)

> Added functionality: randomizer_error() for displaying last error. 

> Function now returns true or false.(Useful for debugging)