maps in php with db connection