doc and db libs content swapped