DB connect and doctrine library