I assume that the DB is hosted on your PC, because you use the localhost server name. Correct me if I'm wrong:
=.\SQLEXPRESS;Initial
In order to make this work on another PC, you have to replace the "." with your computer name or IP address, and off course the other PC needs to be able to "see" your PC.