Make sure created buckets are stored in database correctly