Removed some puts.
DB changing functions optimized.