db structure rework alpha 0
db structure rework alpha 1, also changed 'study' to 'source' for consistency