Calculate process energy and persist both process energy and device
energy to DB
Remove space between table name and column name in query string