Many questions have to be answered first.
Is the database local or on a server?
If local, you will just copy the database into the project.
If on server, you will have to connect to the server.
If so, is the server using dns or an ip?
Using the link above, you can write a connection string with an ip or the dns name.
If ip, is it static?
If the server's ip is not static, when the lease is not renewed - the application will break.