Back-end part of Nightsky application.