This program measures power consumption and stores it into MySQL database.