Fix circular method call.
Bucket functionality implemented for MsSql, MySql, PostgreSql, SqlCE and Sqlite