various tweaks
update database asynchronously