final Database db = getDatabase();
final User user = getUser();
final String sql = " insert into play_log ( track_id, date_played, user_id ) " +
" values ( ?, current_timestamp, ? ) ";
st = db.prepare( sql );
st.setInt( 1, track.getId() );
if ( user != null )
st.setInt( 2, user.getId() );
else