Why don't you put the database into "Resources" and use relative path (E.g. ../Resources/database.db)?