added atomchain database layer + controller