Is that going to work for all databases? I'm not sure what you're trying to say with that first query, you always want a size of -1?