updated req and added dir
switched to a postgresql database