A Scalar Field Dark Matter Model and Its Role in the Large-Scale Structure Formation in the Universe