Change DAO API to work on strings instead of longs