Use talloc for results

Remove trailing \n

Don't set statement field to NULL. Closes #455