Adding loctions to database sortof works

Searchfunction half-finsished