moved data access to db.php
removed planit