added activerecord implementation for sqlite3. required restructuring some of CRUD methods and commands
added active record postgres db implementation. transferred singledton definition into pl.rb so it's all in one place.