Updated to use namespaces.
Updated code to by more dry.
Added a date binding function
Added an example of using using WHERE OR statement.