Bucket functionality implemented for MsSql, MySql, PostgreSql, SqlCE and Sqlite