post limit from database not working