Database populating is moved to init method. Namespaces changed. Imports optimized.