working controller functionality

writes playback info to database