bug fix
test for database alocation limit