The answer is water changes. This is the solution to almost every problem you can face. I would also assume you are feeding your tank and that this is causing the ammonia readings, since there aren't any fish to provide a constant supply of ammonia to feed the bacteria in the nitrate cycle.