Add application to database with key. #6