[FIX] Function to prepare environment and db moved to subdirectory in user home