updated backend

made the add a lost device php handling and connecting to database