Fixed DB sync, record authentication, and PDF print (partial)
Test merge