Extensions: Handling fee sql bugfix