Adding apps json link to database and fixing build writing