Added study table
Loading origin from db
Formatting
Testing origins