Added postledger.php
Separated database connection from postledger into dbc
changed id format to timestamp, added getledger.php