Update library and db

Add Doctrine and sql