Fix parent daemon resource registration SQL queries