[#3] Implemented full conditional logic for MySql.
[#13] Implemented mongo conditional logic.