fully working audio database functions