Fixed SQL query that had a type on the query statement. Added beginning processes of automation to create new refuel and check if refuel intial process is complete or not to determine what information to fill in this is in case a user has captured an initial refuel for a truck.