Added allocations command.
Move access data to db module.