reworked local maps function and added table for showing maps in database plus underlying functionality