refactored postgres-related code in its own subfolder.
reorganized files into directories
located each class in its own file in the different subfolders
refactored MLPFactory in different methods
postgresql-backed hyper-optimization is ready. Still need to finish query