limit db bugfix